package com.ztesoft.report.service.impl;

import com.ztesoft.report.base.service.impl.BaseServiceImpl;
import com.ztesoft.report.entity.Datasource;
import com.ztesoft.report.dao.DatasourceDao;
import com.ztesoft.report.service.DatasourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 数据源配置信息表 服务实现类
 * </p>
 *
 * @author y3tu
 * @since 2018-05-29
 */
@Service
public class DatasourceServiceImpl extends BaseServiceImpl<DatasourceDao, Datasource> implements DatasourceService {

    @Autowired
    private DatasourceDao datasourceDao;

    @Override
    public List<Datasource> selectDataByNameOrJdbc(String name, String driverClass) {
        return null;
    }

    @Override
    public List<Datasource> selectByJdbc(String url) {
        return datasourceDao.selectByJdbc(url);
    }
}
